<html>
	<head>
		<% content_for :title, "User Manager" %>
		<%= stylesheet_link_tag "style" %>
	</head>
	<body id="book-cover">
		<div class="feat_prod_box_details">
			<div class="contact_form1">
				<div class="form_subtitle">
					<%= t :listuser %>
				</div>
				<table>
					<tr>
						<th>Firstname</th>
						<th>Lastname</th>
						<th>Mssv</th>
						<th>Address</th>
						<th>Birth of day</th>
						<th>User</th>
						<th></th>
						<th></th>
						<th></th>
					</tr>

					<% @user_profiles.each do |user_profile| %>
					<tr>
						<td><%= user_profile.firstname %></td>
						<td><%= user_profile.lastname %></td>
						<td><%= user_profile.mssv %></td>
						<td><%= user_profile.address %></td>
						<td><%= user_profile.birth_of_day %></td>

						<td><%= link_to 'Show', user_profile %></td>
						<td><%= link_to 'Edit', edit_user_profile_path(user_profile) %></td>
						<td><%= link_to 'Destroy', user_profile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
					</tr>
					<% end %>
				</table>

				<br />

				<%= link_to 'New User profile', new_user_profile_path %>
			</div>
		</div>
	</body>
</html>
